package work.MrSun.xyq.service;

/**
 * @Author MrSun
 * @Date 2023/4/16 15:37
 */

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import work.MrSun.xyq.mapper.XyqCollectMapper;
import work.MrSun.xyq.model.XyqCollect;
import work.MrSun.xyq.util.SameService;

import java.util.List;

/**
 * 收藏的实现层
 */
@Service
public class XyqCollectService extends SameService<XyqCollect> {
    @Autowired
    private XyqCollectMapper xyqCollectMapper;

    //获取到所有的收藏
    public List<XyqCollect> getAllCollectionMessageByUserId(Integer userId) {
        return xyqCollectMapper.getAllCollectionMessageByUserId(userId);
    }

}
